<div class="row">
    <div class="col-lg-12">
        <div class="ibox">
            <div class="ibox-title">
                <h5>
                    <vc:i18n name="工单办理" namespace="auditDiv"></vc:i18n>
                </h5>
                <div class="ibox-tools" style="top:10px;"></div>
            </div>
            <div class="ibox-content">
                <div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name="动作" namespace="auditDiv"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <select class="custom-select" v-model="auditDivInfo.audit.auditCode">
                                <option selected disabled value="">{{vc.i18n('请选择','auditDiv')}}</option>
                                <option value="1100"
                                        v-if="(auditDivInfo.nextAudit.next || auditDivInfo.nextAudit.exit) && auditDivInfo.nextAudit.backIndex">
                                    {{vc.i18n('同意','auditDiv')}}
                                </option>
                                <option value="1600"
                                        v-if="(auditDivInfo.nextAudit.next || auditDivInfo.nextAudit.exit) && !auditDivInfo.nextAudit.backIndex">
                                    {{vc.i18n('重新提交','auditDiv')}}
                                </option>
                                <option value="1200" v-if="auditDivInfo.nextAudit.back">
                                    {{vc.i18n('退回','auditDiv')}}
                                </option>
                                <option value="1400" v-if="auditDivInfo.nextAudit.backIndex">
                                    {{vc.i18n('退回至提交者','auditDiv')}}
                                </option>
                                <option value="1300">{{vc.i18n('转单','auditDiv')}}</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name="工单说明" namespace="auditDiv"></vc:i18n>
                        </label>
                        <div class="col-sm-10">
                            <textarea :placeholder="vc.i18n('必填，请填写工单说明','auditDiv')" class="form-control"
                                      v-model="auditDivInfo.audit.auditMessage">
                            </textarea>
                        </div>
                    </div>
                    <!-- 办理时 判断是否指定 委托人 如果指定了 则不显示 -->
                    <div class="form-group row"
                         v-if="auditDivInfo.audit.auditCode == '1100' && auditDivInfo.nextAudit.assignee == '-2'">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name="下一处理人" namespace="auditDiv"></vc:i18n>
                        </label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" :placeholder="vc.i18n('必填，请选择下一处理人','auditDiv')"
                                   disabled v-model="auditDivInfo.audit.staffName">
                        </div>
                        <div class="col-sm-2">
                            <button class="btn btn-white " type="button" v-on:click="chooseStaff()">
                                <i class="fa fa-search"></i>选择
                            </button>
                        </div>
                    </div>
                    <!-- 转单时 必须指定 委托人 -->
                    <div class="form-group row" v-if="auditDivInfo.audit.auditCode == '1300'">
                        <label class="col-sm-2 col-form-label text-right">
                            <vc:i18n name="下一处理人" namespace="auditDiv"></vc:i18n>
                        </label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" :placeholder="vc.i18n('必填，请选择下一处理人','auditDiv')"
                                   disabled v-model="auditDivInfo.audit.staffName">
                        </div>
                        <div class="col-sm-2">
                            <button class="btn btn-white " type="button" v-on:click="chooseStaff()">
                                <i class="fa fa-search"></i>选择
                            </button>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button" v-on:click="_auditSubmit()">
                            <i class="fa fa-check"></i>提交
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="property/selectStaff"></vc:create>
</div>